package render
{
	import render.graph.GraphRender;

	public class SpringGraphRender extends GraphRender implements SemanticDataRender
	{
		public function SpringGraphRender()
		{
			super();
		}
		
		public function set dataSource(nt:String):void
		{
			_ntData = new NTData(nt);
			for each( var triple:Triple in _ntData.triples){
				if(triple.predicateType() == Triple.REL)
					triple.mustShow = true;
			}
			reInit();	
		}
		
		public function set tripleDataSource(triples:Array):void
		{
			_ntData = new NTData(null,triples);
			for each( var triple:Triple in _ntData.triples){
				if(triple.predicateType() == Triple.REL)
					triple.mustShow = true;
			}
			reInit();	
		}
		
		override public function set fetcherFunction(func:Function):void
		{
			super.fetcherFunction = func;
		}
		
		public function set rootURI(uri:String):void
		{
			super.reInitRoot(uri);
		}
		
	}
}